<section class="content">
    <div id="main-content">
        <div id="main" style="overflow-y:auto;overflow-x:hidden;min-height:344px">
            <div class="admin-main-container">
                <div class="main-title">
                </div>
                <div class="with-padding" style="margin-bottom:10px;">
                    <a class="btn" href="{:addons_url('Slide://Slide/add')}">新 增</a>
                    <button class="btn ajax-post" target-form="ids" url="{:addons_url('Slide://Slide/savestatus',array('status'=>1))}">启 用</button>
                    <button class="btn ajax-post" target-form="ids" url="{:addons_url('Slide://Slide/savestatus',array('status'=>0))}">禁用</button>
                </div>
                <div class="data-table table-striped">
                    <table class="table table-bordered table-striped">
                        <thead>
                        <tr>
                            <th>
                                <input class="check-all" type="checkbox">序号
                            </th>
                            <th>
                                状态
                            </th>
                            <th>
                                名称
                            </th>
                            <th>
                                最大宽度
                            </th>
                            <th>
                                最大高度
                            </th>
                            <th>
                                自动播放
                            </th>
                            <th>
                                显示左右导航
                            </th>
                            <th>
                                间隔时间
                            </th>
                            <th>
                                随机切换图片
                            </th>
                            <th>
                                操作
                            </th>
                        </tr>
                        </thead>
                        <tbody>

                        </tbody>
                        <?php foreach($_list as $v) {?>
                        <tr>
                            <td><input class="ids" type="checkbox" value="<?php echo $v['id'];?>" name="id[]"><?php echo $v['id'];?></td>
                            <td><?php echo $v['status'];?></td>
                            <td><?php echo $v['name'];?></td>
                            <td><?php echo $v['maxwidth'];?></td>
                            <td><?php echo $v['maxheight'];?></td>
                            <td><?php echo $v['auto'];?></td>
                            <td><?php echo $v['nav'];?></td>
                            <td><?php echo $v['timeout'];?></td>
                            <td><?php echo $v['random'];?></td>
                            <td>
                                <a href="{:addons_url('Slide://Slide/ff',array('id'=>$v['id']))}"></a>
                                <if condition="$v.status eq 1">
                                    <a class="confirm ajax-get" href="{:addons_url('Slide://Slide/forbidden',array('id'=>$v['id']))}">禁用</a>
                                    <else/>
                                    <a class="confirm ajax-get" href="{:addons_url('Slide://Slide/off',array('id'=>$v['id']))}">启用</a>
                                </if>
                                <a class="confirm ajax-get" href="{:addons_url('Slide://Slide/del',array('id'=>$v['id']))}">删除</a>
                                <a class="" href="{:addons_url('Slide://Slide/pic',array('id'=>$v['id']))}">管理</a>
                                <a class="" href="{:addons_url('Slide://Slide/edit',array('id'=>$v['id']))}">编辑</a>
                            </td>
                        </tr>
                        <?php } ?>
                    </table>
                </div>
                <div class="page">
                </div>
            </div>
        </div>
    </div>
</section>